<template>
  <!-- 页脚的页码： -->
  <div class="block" style='text-align:right; margin-right: 40px'>
    <el-pagination
      @current-change="currentChange"
      layout="prev, pager, next"
      :page-size="page.size"
      :current-page="page.current"
      :total="page.total">
    </el-pagination>
  </div>
</template>

<script>
  export default {
    name: "PageDvi",
    props:{
      page:{
        type:Object,
        default:null
      }
    },
    methods:{
      currentChange(current){
        this.$emit('currentChange',current)
      }
    }
  }
</script>

<style scoped>

</style>